package com.deep.product.feign;

import com.deep.common.model.dto.SkuHasStockTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author Deep
 * @date 2022/1/24
 */
@FeignClient(value = "mall-ware")
public interface WareFeignService {

    /**
     * 商品库存
     */
    @PostMapping("/ware/waresku/hasstock")
    List<SkuHasStockTO> getSkusHasStock(@RequestBody List<Long> skuIds);
}
